//
//  HKWebViewContainer.h
//  HKTimeKitApp
//
//  Created by huzhaoke1 on 2023/5/26.
//

#import <Foundation/Foundation.h>
#import<WebKit/WebKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface HKScriptMessageDelegate : NSObject <WKScriptMessageHandler>

@property (nonatomic, weak) id<WKScriptMessageHandler> scriptDelegate;
- (instancetype)initWithDelegate:(id<WKScriptMessageHandler>)scriptDelegate;

@end


@interface HKWebViewContainer : NSObject

@property (nonatomic, strong) WKWebView *wkWebView;
@property (nonatomic , strong)NSString* webUrl;

@property (nonatomic, copy) void ((^finishBlock)(BOOL isFinish));

@property (nonatomic, assign) BOOL hasFinishLoading;

-(void)loadingRequestWithUrl:(NSString *)webUrl; 

- (void)clearCache;

@end

NS_ASSUME_NONNULL_END
